/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

import java.awt.Color;
import javax.swing.*;

public class exitCommand extends JMenuItem implements Command{
    
    private JEditorPane panel;
    
    public exitCommand(JEditorPane panel)
    {
        this.panel=panel;
    }

    public void execute()
    {
        this.panel.setBackground(Color.WHITE);
        System.exit(0);
    }

}

